# # 分类时间
# from datetime import timedelta
# start_str = "8:00"
# end_str = "17:50"
# start_list = start_str.split(":")
# end_list = end_str.split(":")
#
# v1 = timedelta(hours=int(start_list[0]), minutes=int(start_list[1]))
# v2 = timedelta(hours=int(end_list[0]), minutes=int(end_list[1]))
#
# v3 = (v2 - v1).seconds
# if v3 > 25200:
#     print("时间大于7小时")
# else:
#     print("时间小于7小时")

# # 获取节假日
# import requests
# # 构建请求头
# headers = {
#     'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
# }
# res = requests.get("https://timor.tech/api/holiday/year/2022-04", headers=headers)
#
# data_json = res.json()
# for key, value in data_json["holiday"].items():
#     print(key, value)


# # 获取日期星期
# from datetime import datetime
#
# # ctime = datetime.now()
# ctime = datetime.strptime("2024-07-20", "%Y-%m-%d")
# wd = ctime.weekday() + 1
# print(wd)
